package com.rise.serialportdemo;

import android.text.TextUtils;

import com.rise.serialportdemo.cmd4000.BaseAppCompatActivity;
import com.rise.serialportdemo.cmd4000.SerialPortManager;
import com.rise.serialportdemo.cmd4000.utils.ByteUtil;
import com.rise.serialportdemo.cmd4000.utils.Logs;

/**
 * 入钞—测试类
 */
public class SSPActivity extends BaseAppCompatActivity {


    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return 0;
    }

    //串口控制
    private class SerialControl extends SerialPortManager {

        private SerialControl() {

        }

        @Override
        protected void onDataReceived(byte[] received, int size) {
            final String hexStr = ByteUtil.bytes2HexStr(received, 0, size);
            Logs.v("接收的数据===》" + hexStr);
            if (!TextUtils.isEmpty(hexStr)) {

            }
        }
    }
}
